package com.aidex.biz.mapper;

import com.aidex.biz.domain.LoanBillDetail;
import com.aidex.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 还款信息明细Mapper接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-07-03
 */
public interface LoanBillDetailMapper extends BaseMapper<LoanBillDetail> {

    /**
     * 批量删除还款信息明细
     *
     * @param ids 需要删除的还款信息明细ID集合
     * @return
     */
    public int deleteLoanBillDetailByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param loanBillDetail 还款信息明细
     * @return 结果
     */
    public Integer findMaxSort(LoanBillDetail loanBillDetail);

    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    public Integer insertBatch(List<LoanBillDetail> list);

    public List<LoanBillDetail> findListByLoanId(@Param("loanId") String loanId);
}
